<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<link href="https://magicbox.bkclouds.cc/static_api/v3/assets/toastr-2.1.2/toastr.min.css" rel="stylesheet">
<script src="https://magicbox.bkclouds.cc/static_api/v3/assets/toastr-2.1.2/toastr.min.js"></script>
<button class="king-btn king-info" data-code="2" id="plugin4_demo9">其他提示</button>
<script type="text/javascript">
    // 警告提示
    $("#plugin4_demo9").click(function() {
        var d = dialog({
            width: 260,
            title: '提示',
            cancel: function (){},
            ok: function() {},
            okValue: '确定',
            content: '<div class="king-notice-box king-notice-warning"><p class="king-notice-text">请输入用户名！</p></div>',
            cancelValue: '取消',
            cancel: function() {
                // do something
            }
        });
        d.show();
    });
</script>
</body>
</html>